package com.core.okhttpcore;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "okhttputil")
@ConditionalOnMissingBean(OkHttpProperties.class)
public class OkHttpProperties {

    private String version;

    /**
     * 是否启用
     */
    private boolean enable=false;

    //承接配置文件的 datasource 链接
    private List<Config> configs;

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public List<Config> getConfigs() {
        return configs;
    }

    public void setConfigs(List<Config> configs) {
        this.configs = configs;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
